﻿<%@ Page Title="" Language="C#" MasterPageFile="~/_console/_console.Master" AutoEventWireup="true" CodeBehind="template-list.aspx.cs" Inherits="SmartSpace.WebApp._console.page.template_list" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolderHead" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolderMenu" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolderTitle" runat="server">
    页面布局模板管理
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="ContentPlaceHolderToolbar" runat="server">
    <a href="./template-add.aspx">
        <img src="../resources/images/pages/tplt-add.png" />
        create</a>
</asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderID="ContentPlaceHolderContent" runat="server">
    <div class="box">
        <h2>页面布局模板列表</h2>
        <div class="block">
            <table class="list">
                <asp:Repeater ID="_ctlList" runat="server">
                    <HeaderTemplate>
                        <thead>
                            <tr>
                                <th>-</th>
                                <th>编号</th>
                                <th>-</th>
                            </tr>
                        </thead>
                    </HeaderTemplate>
                    <ItemTemplate>
                        <tr>
                            <td>
                                <asp:Image ImageUrl='<%# Eval("PreviewImageId","~/_handlers/_private/get-image.ashx?id={0}") %>' Width="32" Height="32" runat="server" />

                            </td>
                            <td><%# Eval("Code") %></td>
                            <td><a href='<%# Eval("Code","./template-edit.aspx?name={0}") %>'>
                                <img src="../resources/images/pages/tplt-edit.png" />
                                edit</a></td>
                        </tr>
                    </ItemTemplate>
                </asp:Repeater>
            </table>
        </div>
    </div>
</asp:Content>
